@extends('Front.master')

@section('title', '加入我们')

@section('css')
<link type="text/css" rel="stylesheet" href="css/style.css"/>
<style type="text/css">
    *{
        margin: 0px;
        border: 0px;
        padding: 0px;
    }
</style>
@endsection

@section('content')


<div class="container">
    <div class="join-title">
        <h1>伯乐识良马 明主觅贤才</h1>
        <p>请将简历发送至{{ $info->hr or 'hr@jtpk668.com' }}</p>
        <p>邮件主题表明姓名_招聘职位。欢迎您的加入</p>
    </div>
    <div class="join-list">
        @foreach ($joins as $j_k => $join)
            <div class="join_div">
                <div class="img1">
                    <img src="{{ $join->img }}">
                </div>
                <div class="join_info">
                    <div>
                        <span class="title">{{ $join->title }} &nbsp;({{ $join->nums }}名)</span>
                        <span class="time">{{ date('F d, Y', strtotime($join->updated_at ? $join->updated_at : $join->created_at)) }}</span>
                    </div>
                    <dl>
                        <dt>岗位职责：</dt>
                        @if (isset($join->duty) && is_array(json_decode($join->duty, true)))
                            @foreach (json_decode($join->duty, true) as $key => $d)
                                <dd>{{ ($key + 1) . '.' . $d}}</dd>
                            @endforeach
                        @endif
                    </dl>
                </div>
            </div>
        @endforeach
    </div>
</div>

@endsection